import mockjs from "mockjs";

import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'
import permissionApi from './mockServeData/permission'

// 拦截接口
mockjs.mock(/home\/getData/,homeApi.getStatisticalData)
mockjs.mock(/user\/getUser/,userApi.getUserList)
mockjs.mock(/user\/addUser/,'post',userApi.createUser)
mockjs.mock(/user\/editUser/,'post',userApi.updateUser)
mockjs.mock(/user\/delUser/,'post',userApi.deleteUser)
mockjs.mock(/permission\/getMenu/,'post',permissionApi.getMenu)